<script>
export default {
  name: "MView"
}
</script>

<template>
  <h1>容器组件</h1>
    <div class="common-layout">
      <el-container>
      <!-- 侧边栏 -->
        <el-aside width="200px">
          <el-menu>
           <el-menu-item index="1">用户管理</el-menu-item>
           <el-menu-item index="2">车辆管理</el-menu-item>
           <el-menu-item index="3">围栏管理</el-menu-item>
          </el-menu>
        </el-aside>
     <!-- 右侧主体内容  -->
        <el-container>
          <el-header>
            <h1 style="background-color: #0aa1ed ;color: white;">智慧车辆运营系统-IVSS</h1>
          </el-header>
          <el-main>
             <el-table :data="vehicleArr">
               <el-table-column label="序号" type="index"  align="center" width="80"></el-table-column>
               <el-table-column label="品牌" prop="brand" align="center"></el-table-column>
               <el-table-column label="型号" prop="model" align="center"></el-table-column>
               <el-table-column label="车牌号" prop="license" align="center"></el-table-column>
               <el-table-column label="颜色" prop="color" align="center"></el-table-column>
               <el-table-column label="公里数" prop="Km" align="center"></el-table-column>
             </el-table>
          </el-main>
        </el-container>
      </el-container>
    </div>
</template>
<script setup>
import { ref } from 'vue'

const vehicleArr = ref([
  {brand:"宝骏",model:"宝骏560",license:"粤B88888",color:"蓝色",Km:1000},
  {brand:"奥迪",model:"奥迪A8L",license:"沪A48897",color:"黑色",Km:2000 },
  {brand:"宝马",model:"宝马535",license:"浙B88888",color:"黄色",Km:3000},
  {brand:"保时捷",model:"保时捷Tycan",license:"苏B88888",color:"蓝色",Km:4000},
  {brand:"宝骏",model:"宝骏560",license:"粤B88888",color:"蓝色",Km:1000}
])
</script>

<style scoped>

</style>